from selenium import webdriver
from selenium.webdriver.common.by import By
from time import sleep

op = webdriver.ChromeOptions()
op.add_experimental_option("excludeSwitches",["enable-automation"])
op.add_experimental_option("useAutomationExtension",False)
driver = webdriver.Chrome(options = op)

driver.get(r"https://www.mosoteach.cn/web/index.php?c=passport&m=index")

driver.find_element(By.XPATH,"//*[@id='account-name']").send_keys("18117818660")
driver.find_element(By.XPATH,"//*[@id='user-pwd']").send_keys("King20020827@")
driver.find_element(By.XPATH,"//*[@id='login-button-1']").click()
sleep(3)
print(driver.title)

assert '我的班课' in driver.title
driver.quit()